home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / RIBAttributeBegin.m < prev    next >
Encoding:
Text File  |  1995-03-22  |  814 b   |  44 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5. #import "RIBAttributeBegin.h"
  6.  
  7. @implementation RIBAttributeBegin
  8.  
  9. - (BOOL)pushesOrPopsCTM { return YES; }
  10. - (BOOL)pushesCTM { return YES; }
  11.  
  12. - renderSelf:(WW3DCamera *)camera startingAt:(RtFloat)shutterOpenTime endingAt:(RtFloat)shutterCloseTime
  13. {
  14.   RiAttributeBegin();
  15.   return self;
  16. }
  17.  
  18. - writeEve:(NXStream *)stream atTabLevel:(int)tab
  19. {
  20.    int  i;
  21.  
  22.  
  23.    for (i = 0; i < tab; i++)
  24.    {  NXPrintf(stream, "\t");
  25.    }
  26.    NXPrintf(stream, "AttributeBegin;"); 
  27.    return self;
  28. }
  29.  
  30. - writeInventorAtTime:(float)currentTime to:(NXStream *)stream atTabLevel:(int)tab
  31. {
  32.    int  i;
  33.  
  34.  
  35.    for (i = 0; i < tab; i++)
  36.    {  NXPrintf(stream, "\t");
  37.    }
  38.    NXPrintf(stream, "Separator {");
  39.    return self;
  40.  
  41. }
  42.  
  43. @end
  44.